package com.ruoyi.project.system.mapper;

import java.util.List;

import com.ruoyi.project.system.domain.SysGoodsOrder;
import com.ruoyi.project.system.domain.SysServiceOrder;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * 二手物品订单Mapper接口
 *
 * @author jjp
 * @date 2020-04-24
 */
@Mapper
@Repository
public interface SysGoodsOrderMapper {
    /**
     * 查询二手物品订单
     *
     * @param goodsOrderId 二手物品订单ID
     * @return 二手物品订单
     */
    public SysGoodsOrder selectSysGoodsOrderById(Long goodsOrderId);

    public SysGoodsOrder selectSysGoodsOrderByNo(String orderNo);

    /**
     * 查询二手物品订单列表
     *
     * @param sysGoodsOrder 二手物品订单
     * @return 二手物品订单集合
     */
    public List<SysGoodsOrder> selectSysGoodsOrderList(SysGoodsOrder sysGoodsOrder);

    public List<SysGoodsOrder> getMyGoods(SysGoodsOrder sysGoodsOrder);

    /**
     * 新增二手物品订单
     *
     * @param sysGoodsOrder 二手物品订单
     * @return 结果
     */
    public int insertSysGoodsOrder(SysGoodsOrder sysGoodsOrder);

    /**
     * 修改二手物品订单
     *
     * @param sysGoodsOrder 二手物品订单
     * @return 结果
     */
    public int updateSysGoodsOrder(SysGoodsOrder sysGoodsOrder);

    /**
     * 删除二手物品订单
     *
     * @param goodsOrderId 二手物品订单ID
     * @return 结果
     */
    public int deleteSysGoodsOrderById(Long goodsOrderId);

    /**
     * 批量删除二手物品订单
     *
     * @param goodsOrderIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysGoodsOrderByIds(Long[] goodsOrderIds);

    public List<SysGoodsOrder> confirmOrderList();

}
